/*
 * sock_init.c
 *
 *  Created on: 2009-5-28
 *      Author: root
 */
#include"mysocket.h"
#include<stdio.h>

int sock_init(){
	printf("set up the associated tcp/ip stack\n");
	scanf("&d",&tcpipqid);
	processqid=msgget(IPC_PRIVATE,IPC_CREAT);
	if(processqid<0){
		perror("cannot create a message queue");
		return -1;
	}
	return 0;
}
